﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HydroAnalyzer
{
    public partial class frmDataView : Form
    {
        public frmDataView()
        {
            InitializeComponent();
        }

        private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (this.tabControl1.SelectedIndex)
            {
                case 0:
                    this.dataGridView1.DataSource = frmMain.filterTable;
                    break;
                case 1:
                    this.dataGridView2.DataSource = frmMain.resultDt;
                    break;
            }
        }

        private void frmDataView_Load(object sender, EventArgs e)
        {
            this.tabControl1.SelectedIndex = 0;
            this.dataGridView1.DataSource = frmMain.dt;
        }
    }
}
